Minor CMake improvements

Should automatically choose good library defaults based on whether it
can quietly find them on its own.