fixes clang compile issues