fix some compiler error in travis-ci