Added support for Mac.

Added support for MacOS