fix some MinGW warnings