lots of cmake tweaks and fixes to accommodate libunbound