Moved QSV encoder implementation to QSVHelper

Notable improvements:
- fixes d3d11 mode on all tested configurations
- should improve compatibility with Optimus (untested)