waf: remove pointless function indirection with custom checks