Fix build problem related to readline libraries
Use tonumber in rng:getint method