Update compiler options
Install g++-4.8 for travis-ci
Use g++-4.8 as compiler
Install gcc-4.8