修复静态编译有可能导致的出错

Signed-off-by: spriteray <spriteray@gmail.com>