apps/d3d9: Avoid BackBufferFormat = D3DFMT_UNKNOWN.

As that can cause mismatches on 16bpp modes
apps/d3d8: Skip when d3d8 is not supported.