Update install script, and add a patch that is needed for gist