Fix builds on Windows (MSVC and MinGW, 32/64 bit)