update Lua to 5.1.5
fix zlib

first: fix error using wrong #define names
second: splint has a bug concerning unistd.h
remove unnecessary variable