fix for compilation with clang in linux