Fixing some issues with gcc on ubuntu for travis.