fixed errors for clang, added clang config