Fix a bug (and memory leak) in the core event handler.
Build XenDevice when building the HaLVM.