mod: initial port to osx
mod: build documentation for osx