Paranoia?
Add in a hack to expose the general sysctlbyname API.
Flesh out more of this totally untested code.
* add a call to uinet_initialize_thread(); - it's required or things like curthread fail.
* modify the IO loop to keep reading as required.  It's goto hell and thus it must be
  rewritten.