Cross platform compiling including projects

Compiles on Mac now.