Fix YAML/TinyXML patches for GCC versions older than 4.2