Add decent build system

The build system is Waf.