Adds Makefile and fixex unix bug.