Fixed compilation with Lua 5.2.
Fixed compilation with Visual C++ (in C mode).