Improve d3d library searching