sm: only add xpmem to ctp_sm_*FLAGS

and add those to Makefile.am