Add workaround to support LinkageSpec.