Fixed ld flag order