fix #292
fix #292 part 2
cmake: ubuntu 14.04 compatibility

fix problems with gcc 4.8 links
Merge pull request #295 from CanalTP/fix-14-04

Fix for Ubuntu 14.04