waf:lib/replace: Fix building with older GCC versions