cannot build shared and static simultaneously