MinGW 3 corrections