Only link against libdxguid where necessary.