Changes for MinGW compiler