Fixed SIGTSTP and moved around stuff related to shared memory.
Moved death message because of exit/forking used for pid regeneration.
There was a bug that prevented compilation. It is fixed now.
Merge branch 'master' into osx-compat