fixed clang compile errors