MinGW compatibility