fix compilation issues
added makefile