build shared and static libs.