fix Makefile, add waf build