  	return (NULL);
  }
  
-@@ -519,16 +518,21 @@ vmexit_suspend(struct vm_exit *vme, int *pvcpu)
+@@ -521,16 +520,21 @@ vmexit_suspend(struct vm_exit *vme, int *pvcpu)
  
  	switch ((int) (how)) {
  	case VM_SUSPEND_RESET:

 {
 	int c, error, gdb_port, bvmcons, fw;
 	int dump_guest_memory, max_vcpus, mptgen;
@@ -945,7 +953,7 @@ main(int argc, char *argv[])
 	/*
 	 * Head off to the main event dispatch loop
 	 */

-void mevent_dispatch(void);
+int mevent_dispatch(void);
+void mevent_exit(void);
diff --git a/include/xhyve/uart_emul.h b/include/xhyve/uart_emul.h
index a4851a1..0cf1b3c 100644
--- a/include/xhyve/uart_emul.h
+++ b/include/xhyve/uart_emul.h
@@ -40,3 +40,5 @@ int uart_legacy_alloc(int unit, int *ioaddr, int *irq);
 uint8_t uart_read(struct uart_softc *sc, int offset);
 void uart_write(struct uart_softc *sc, int offset, uint8_t value);
 int uart_set_backend(struct uart_softc *sc, const char *backend, const char *devname);
+
+extern void go_set_pty_name(char *name);
diff --git a/include/xhyve/xhyve.h b/include/xhyve/xhyve.h
index 5464b2e..ac7f526 100644
--- a/include/xhyve/xhyve.h
+++ b/include/xhyve/xhyve.h
@@ -29,6 +29,7 @@
