fixed clang compile warnings