Fix Doxygen so that --with-doxywizard works.

Currently the --with-doxywizard flag fails to build doxywizard.  It
needs additional massaging because on OS X it builds an app bundle
rather than a single binary.

Fixes #18739.