Improving error reporting
Minor cmake tweak