fixed compilation using clang