loader: improve D loader for OGL < 3