Fixed clang compiling issues.