Fix paths of externals for classlibs build.