fixed some clang specific errors/warnings