xen: fix build as shared library