Initial MACOSX support

Still buggy