Fix d3dx9_39.dll related errors in Potentia