Fix compilation warning and add Makefile

Makefile is for people without XCode