Add OSX support.
Build on ubuntu.