remove __MINGW__ ifdef, add -U__STRICT_ANSI__ to work around mingw bug