Some tweaks.
Fix osx cmake configuration.
Ignore dist folder.