[Bug 53918] New: Building with external PE libraries fails when static libraries are also installed