fix link order on linux