cast errno to int when printing it.