updated nio native code to properly check for PIPE closure on POSIX OSes
updated nio native code to properly check for PIPE closure on POSIX OSes

bigfatbrowncat/avian-pack.avian,MaartenR/avian,bigfatbrowncat/avian-pack.avian,bgould/avian,MaartenR/avian,MaartenR/avian,minor-jason/avian,dicej/avian,getlantern/avian,getlantern/avian,lostdj/avian,badlogic/avian,ucdseniordesign/avian,getlantern/avian,lostdj/avian,ucdseniordesign/avian,bgould/avian,marcinolawski/avian,lwahlmeier/avian,minor-jason/avian,marcinolawski/avian,dicej/avian,joshuawarner32/avian,lostdj/avian,lwahlmeier/avian,joshuawarner32/avian,getlantern/avian,joshuawarner32/avian,bgould/avian,bgould/avian,lwahlmeier/avian,bigfatbrowncat/avian-pack.avian,dicej/avian,badlogic/avian,badlogic/avian,ucdseniordesign/avian,lwahlmeier/avian,minor-jason/avian,joshuawarner32/avian,minor-jason/avian,marcinolawski/avian,MaartenR/avian,ucdseniordesign/avian,dicej/avian,bigfatbrowncat/avian-pack.avian,lostdj/avian,marcinolawski/avian,badlogic/avian