waf: fix debug flag being broken