Fix MinGW compiler warnings