Fix build error on TravisCI