waf: bring back shared Makefile and configure (needed by s3-waf).