Fix ROOT-6092

Silence deprecation warnings when creating the PCH.