fflush after printf implemented stepForward and Shutdown for the SharedMemory client/server
fix a bug in CommonMultiBodyBase: don't use data if it hasn't been allocated