Removed Mono.Posix dependency.
Split GTK and non-UI code so that it will work without GTK# installed.