Fix build using MinGW.
MinGW requires wincrypt.h. GCC does not support #pragma comment, which trips Werror.
* CVE-2013-6371: hash collision denial of service * CVE-2013-6370: buffer overflow if size_t is larger than int