Well, I'm attempting at getting Qt5 on my Windows box with mingw64 (not cygwin). But when trying to build OpenSSL. I get this error

-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -
DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL
_ASM -DGHASH_ASM -Iinclude \
-DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso.exe \
fips_premain.c fipscanister.o \
libcrypto.a -lws2_32 -lgdi32 -lcrypt32
mingw32-make[3]: Entering directory 'c:/Qt/openssl-1.0.1c'
mingw32-make[4]: Entering directory 'c:/Qt/openssl-1.0.1c'
libcrypto.a(bn_gf2m.o):bn_gf2m.c.text+0xab2): undefined reference to `bn_GF2m_mul_2x2'
collect2.exe: error: ld returned 1 exit status
Makefile.shared:279: recipe for target 'link_a.cygwin' failed
mingw32-make[4]: *** [link_a.cygwin] Error 1
mingw32-make[4]: Leaving directory 'c:/Qt/openssl-1.0.1c'
makefile:347: recipe for target 'do_cygwin-shared' failed
mingw32-make[3]: *** [do_cygwin-shared] Error 2
mingw32-make[3]: Leaving directory 'c:/Qt/openssl-1.0.1c'
makefile:301: recipe for target 'libcrypto.dll.a' failed
mingw32-make[2]: *** [libcrypto.dll.a] Error 2
mingw32-make[2]: Leaving directory 'c:/Qt/openssl-1.0.1c'
makefile:110: recipe for target 'shared' failed
mingw32-make[1]: *** [shared] Error 2
mingw32-make[1]: Leaving directory 'c:/Qt/openssl-1.0.1c/crypto'
makefile:278: recipe for target 'build_crypto' failed
mingw32-make: *** [build_crypto] Error 1