Add support for some sockioctls.