The example doesn't work on Windows because it connects 0.0.0.0
Lua 5.2 Manual said that lua_objlen has been renamed to lua_rawlen.
write2 modified for MSVC C89 compliance
Merge pull request #47 from imzyxwvu/master

Some fixes to improve compliance.