Somewhat better (but still absurdly hacky) support for socket type flags in Linux. Boo.