Re-ordered link order to be in dependency order, which is strictly enforced by MinGW