reworked cmake to fail if missing libraries or includes