bugfixes. changed compiler to clang