change build system from Makefile to WAF