fix clang compile warnings