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