Detect if running under MinGW