more MinGW64 compatibility workarounds