Final d3d-refactor, after fighting with andr3wmac release, i patched it with Lukas trianglefan files.

WARNING : the trianglefan patch is to be reviewed  !
dependencies : windows 8 sdk or windows 8.1 sdk! (tested with windows 8 sdk)