Improve CHECK_D3D so the error code is printed in the output window along with the D3D call that failed
Add debug-only code to log the list of DXGI adapters to the console during startup. Also export NvOptimusEnablement symbol to trigger the NV GPU on Optimus laptops.