Fix compile errors when building under mingw64