fix linker order