Silence some warnings in the Windows build

Tested with mingw-w64 GCC 4.9.2.