fixed libraries to linker order