Updated build system, added Linux and OSX builds.