Debugging with mason.

Added building on os x via clang.
Cleaning up simple example and various OS support.