This fixes one of the issues I mentioned in #172
Here is the tweaked CMakeLists.txt for Xenial build, a Specfile for Fedora builds, and CircleCI config for automating the whole thing. Make sure to head on over to https://circleci.com and log in with your GitHub to enable the project.