Issue #4608: Minimize the size of engine core

Minimize the size of engine core:
1. base-nodes
2. labelttf
3. sprites