fix build error on non-glibc/android linux

when including a non-standard header, the sane approach is to
blacklist the non-conforming platforms, instead of whitelisting
the conforming ones.