fix the cmake magic to enable backwards compatibility for the category interface Closes #29 See merge request !94