Modify CMake script to build correctly on more platforms

Signed-off-by: Paul Jones <paul@pauljones.id.au>
Merge branch 'master' of https://github.com/PeeJay/FireSight
Paul's changes for Gentoo