EGE 库实现：简化全局初始化。

Signed-off-by: FrankHB <frankhb1989@gmail.com>