remove trailing newlines from various versions of bits/shm.h