added unix support

also have some basic gui stuff, but its commented out because it doesn't
work yet.