Compiling with Xen 4.1.x.

It looks like mostly set up and teardown are affected by the changes to Xen's API.

Added guards to xen_private.h.

Including string.h to fix warnings about memset/memcmp being undeclared.