Fixed the inheritance of SpriteBase and WindowBase.

[FIX] Fixed the inheritance of SpriteBase.
[FIX] Fixed the inheritance of WindowBase.