fixed static link order on Linux