MinGW improvements