adaptions for building with clang