D3dadapter9: add dri2 fallback and various cleanups

Signed-off-by: Axel Davy <axel.davy@ens.fr>