Fix class_id allocation from DLL.