Fixed for MinGW