unix: fix GNU-ism introduced in edd1007

Don't use features.h, it's only available on GNU/glibc systems.