both dynamic and static libs working