glibc: avoid gd linkage