Use a script to figure out an order of libs which makes ld.exe not crash.