Fix xcp-sm build