Extra checks for missing libraries.

Turns out the cmake REQUIRED parameter to find_package() doesn't actually check
that the package is available. So we have to do it "manually".
Fix typo.