remove errrno as a var, and fix strerror