fix shared mem warnings