I had this problem too as a team leader.
Most of the time employees are aware of this bad decision but still want to make their own engine/library because it's more fun and they think they can get more credit by building their own library.
Instead of telling them what to do (nobody like it) try to give them a clear deadline for the whole project.