Added makefile and small changes for compiling on Linux