basic fixes to ext/shmop