Switch from static to dynamic lib