Apply the same static lib reordering fix for Qt5 as well.