CMake improvements for Linux/GCC.
Some GCC 4.6 compatibility changes.

The `g_path_local` definition is somewhat arbitrary.
Added Travis config.