Cleanup
FT: use the portable way to create a shared memory segment
Remove dead code
Use a standard way for creating the mapping