added EINTR read handling to wc

Added check for EINTR in wc during a read()
so that in can continue after this error.