waf: ensure "make dist" works from a clean git tree for all libraries