Hack to help the compilers on Travis find the Qt5 headers.

The clean version of this patch would be to properly have the header
paths set by CMake. On a Ubuntu 14.04, this patch is not needed, but
Travis uses a 12.04.
Add the -fPIE compiler flag.
Fix confusion on C++ const syntax.