libconfig dependency

added checking for libconfig in cmake prior to creating makefile