Fix and register dll paths.