Fix linker flag order