Slight changes to keep up with MinGW.