fixed compilation for clang++