- this enables DEP on all Windows version which support the SetProcessDEPPolicy() call in Kernel32.dll
- use a dynamic approach via GetProcAddress() to not rely on headers or compiler libs
- this is the same way the Tor-project does it
See https://en.wikipedia.org/wiki/Data_Execution_Prevention for a detailed explanation of DEP! It is possible to enable this directly when linking, but this needs much more testing than this small patch :). I consider it a valuable 0.7 security feature on Windows.
To verify if DEP is enabled for bitcoin-qt.exe you can use Sysinternals ProcessExplorer:
