Fixed the build of Clang's unit tests on MinGW. Also removed some