Fixed potential linker errors with mingw, as it isn't MSVC and it isn't APPLE.