On MinGW it is not possible to build shared and static libraries at once.