fix boost dynamic shared ptr detection

Change-Id: I8674a6fcd17fb62555a3af374c05cca76ceaaced