waf:lib/replace: fix a build error with non-gcc compilers