Correct external libraries order