libd3d9-wine: port to Xlib

This will inevitable make it slower, but this is just staging for
direct wine integration.