make rcsample lua 5.2 compatible