Added fix for segmentation fault wiht Direct3D 9.0 on earlier versions of
Windows.