fix build issue on mac clang++ 6.00.054