attempt to fix clang compile errors