Added support for Mac OS and started a sample for this platform. Cleaned the whole project.