fixed linker flag order