compiles with waf but not cmake