fix clang compilation issues