add a new build system

This commit adds a new build system based on waf. Configure is deprecated
effective immediately and someday in the future it will be removed. You can
find how the choice for waf came to be in the related rst file.