Fix gluon-legacy depends