fixed linker order for dl