Remove allocateCorePrivateIndex, freeCorePrivateIndex

Also remove CompPrivate *privates from struct CompCore