Modified code for compiliation with cc on Linux. Still many compilation warnings and errors.
Added makefile for linux.