Fix MinGW compiler warnings-as-errors