Updated files for lua 5.2 compatibility