update the config of travis-ci and compile with g++-4.8