Link against threads

Related to frenetic-lang/ocaml-openflow#65.