Fix leak in parse_facet + compilation on Windows