better detection for O_TMPFILE support