WIP OSX build

correctly compiles, but does not link