Changes for clang on Windows using mingw/gcc