Fixed Clang compile errors