MinGW adaptation