Test feature macros before defining non-POSIX things. Add MAP_FAILED.