Changed makefile so that it compiles in OSX, and added root file