misc: adamain: Add support for building waf

But do not build it by default yet.
Also see commit 9dd07ee6bb99bf57e7a9b5fb819dad88f2657ac4