s3-waf: add some module specific functions for s3 waf build.