fix the regexp engine
Fix r_io_mach_read for partial reads on segment limits