fixed compilation errors for lua project. Rebuild LuaCocos2d.cpp.
Merge pull request #1878 from dumganhar/lua-fix

fixed compilation errors for lua projects. Rebuilt LuaCocos2d.cpp.