Voglbench sdl2 port

Not sure if this is right... anyway. This contains fixes for Windows, including the fix from the master to handle capturing core contexts, and the fixes to play them back.