Fix some warnings

Hi,

This should fix some warnings on mingw-w64.