fix build regression from removal of #ifdef SHARED