add stdlib.h and RIFFA_WRAPPER_H to riffa wrapper header
Update shared_mem to use riffa lib
Update Makefile.common to link riffa library