Fix build of externals