Linux Build

This fixes the build on Linux, so now we have working OS X and Linux builds. It also reduces the size of the binaries, so the .so/.dylib is now around 4MB.