Issue #4589: Make engine classes extendable in JSB pack 1