Fixed compilation for lua 5.2