be more lua 5.2/5.1 compatible. log10