Attempt to fix some compiler warnings on MinGW64.