adding makefile
fixing struct seg -> seg
making sleep work crossplatform
Merge branch 'makefiled'
merged and updated