Fix building BSPC using clang and mingw