Fixes the MacOS Build

This pull request fixes the mac os build problems (at least for travis). A build script for mac on travis is included.