New error checking; cleanup .sln file

Removes reference to an old version of the project that never worked.

Adds additional error checking so that the application won't segfault on a
system that doesn't have an HDMI or DVI port when attempting to switch to
it.