Adding a Makefile a fix compiling errors