Fix clang 5 compile error