Add Darwin support and fix manpage install.