Fix MinGW warnings caused by the unknown MSVC pragmas