Fix compilation of lvm