bugfix linker order