cleaned up driver.
fixed compiling with msvc 2012
fixed midi selection on Windows 8