This unfortunately won't work, since Cohttp_lwt cannot depend on Unix -- only Cohttp_lwt_unix can.  This information could possibly be encoded in the Cohttp.Connection.t though, and unpacked only in the relevant (Cohttp_lwt_unix or Mirage_http) backend.