added cmake file to automatically find guslib
fixed minor errors in previous cmake files