Try using the d3d9.dll out of your system32 folder in windows 7