Fix problem with GetSkipMessages
Implement non-blocking read for Unix.