Only link against libdxguid where necessary.

47 files changed