fixed compilation for clang 5.1