Cleanup cmake stuff

* Use coherent variable names.
* Enable compilation depending on which packages were found.
* Import FeatureSummary from cmake git and print a nice output for
  packages found/not found and for features enabled/disabled.