Instrumenting wined3d library