cxx: Add support for building with waf