Fixed errors/warnings on Clang