Fix lua stdlib issues