Fixed for linux, added makefile