Use libtool to generate shared and static libs