Solve linker load order on linux