Fixed linker order for GCC