remove constant from shared pointer initialisation
fixes for gcc 4.4 branch