Added Makefile, fixed gcc's -Wall warnings, added appropriate headers fo...

...r linux