Fix compiler warnings when building for Windows

This branch contains some trivial changes for fixing compiler warnings that are emitted when building on MinGW.