Improve MinGW support