fix compile error on TestLua
fix mac compile
Merge pull request #5610 from andyque/fixgui_master

fix compile error on TestLua