Pull request for libshmeram

The following patches should be merged.