fixing clang compile errors