Fix compile warnings in Windows MinGW GNU 4.7.1