libfabric: fix providers to conditionally add libs/flags

Only allow the usnic and PSM providers to add CPPFLAGS and LIBADD
flags when they are going to be built.