Problem with D3D9 CreateDevice