fixed missing cast in the non-i386 version of shmat (preparation for ports)