Avoid quadratic growth in gl_LIBSOURCES.