cleaning up how dependencies are merged in to fix an issue where the linker order is screwed up