Allow larger shared memory sizes.  Fixes #226