Fixed compiling and linking error of lua tests when using NDK r10 above.
Fix generate apk fail
Merge pull request #9266 from Dhilan007/v3-lua-fix

Fixed compiling and linking error of lua tests when using NDK r10 above.