prevent shmget from allocating objects that overflow ptrdiff_t