Fix shared memory errors on centos 6.4