In order to use twin you need to build and install a new kernel with options SYSVSHM, SYSVSEM, and SYSVMSG.