Fix imports so that XML parsing does not fail in OpenJDK deployments.