Workaround to avoid static initialization - patch from Chromium.