fixes lua 5.2 compile