Migrate to Waf build system