Fix issue with C++11 support on Travis.

The current version of gcc on Travis is 4.6.3 and it does not support C++11.
Just update gcc to the 4.8 version.