Add Makefile
Fix compile error
Improve Makefile