add automatic osx and clang compilation