Fixed a compile error when using clang