Fix smartid build with SAM