added headers to g-shell (now running under ubuntu)
added compilation flag -pthread to makefile for i-matrix