find xpmem
fixes to compile from main directory for xpmem. --with-xpmem argument added