Fix NVENC with nvidia drivers 340 and higher