Fix build using MinGW.

MinGW requires wincrypt.h.
GCC does not support #pragma comment, which trips Werror.
Merge pull request #150 from ams-cs/master

Fix build using MinGW.