updated support for the OS X platform

- copying all the files to osx
- making sure it works with the latest osx platform