fixed compilation warnings for lua