A little CMake cleanup

Look for sparkle and cmocka only when necessary.
Change man page directory to standard /man1 (it doesn't work with /man here)