Build both dynamic and static libraries