  		"xhyve is a port of FreeBSD's bhyve hypervisor to OS X that\n"
  		"works entirely in userspace and has no other dependencies.\n\n"
  		"Homepage: https://github.com/mist64/xhyve\n"
-@@ -263,8 +264,6 @@ vcpu_thread(void *param)
+@@ -265,8 +266,6 @@ vcpu_thread(void *param)
  
  	vcpu_loop(vcpu, vmexit[vcpu].rip);
  

+	}
+	return 0;
 }
diff --git a/src/xhyve.c b/src/xhyve.c
index 97fd41f..1ea4006 100644
--- a/src/xhyve.c
+++ b/src/xhyve.c
@@ -76,6 +76,7 @@ typedef int (*vmexit_handler_t)(struct vm_exit *, int *vcpu);

 #include <xhyve/support/segments.h>
 
 #ifndef CTASSERT /* Allow lint to override */
@@ -44,6 +45,7 @@ extern int guest_ncpus;
 extern int print_mac;
 extern char *guest_uuid_str;
 extern char *vmname;
+extern bool exit_mevent_dispatch_loop;
 
 void xh_vm_inject_fault(int vcpu, int vector, int errcode_valid,
     uint32_t errcode);
@@ -79,3 +81,5 @@ void vcpu_add(int fromcpu, int newcpu, uint64_t rip);
 int fbsdrun_vmexit_on_hlt(void);
 int fbsdrun_vmexit_on_pause(void);
 int fbsdrun_virtio_msix(void);
