check _POSIX_* macros != -1 for support

http://pubs.opengroup.org/onlinepubs/009695299/basedefs/xbd_chap02.html