Fix d3d linkage, for real!