fix compiation error for clang++