Support build on macos 10.9

Support build on macos 10.9 with clang 5.1