[3rdparty/apr] add MinGW64 support

All changes can be conveniently found by looking for __MINGW64__.

If building APR fails, you might need to uncomment the appropriate part
of <wtypes.h> and try again.