Replaced deprecated aliases of OSError.