Added support for darwin

Added basic Mac OSX support (client only)