Added unix build script which compiles gist correctly
Fixed setup and CMakeLists to build on unix