Made some changes to all CMakeLists files that should solve some
linking issues with previous versions of Ubuntu