style and fix clang build error on travis-ci