Fix shared memory errors on centos 6.4
Merge pull request #250 from insidenothing/master

Fix shared memory errors on centos 6.4