fix some compile error under clang