look for doc-building dependencies only if WITH_DOC is set
don't look for CMocka if we're not building unit tests
look for Sparkle only on OS X