Migrated to basic waf build-system.

distcheck is broken on windows, I have a patch in line to fix this,
so hopefully that will get in the waf tree soon-ish.