Added support for Nvidia Optimus (hopefully).