Fix and optimize caption state change
Fix compilation after xy- branch
Disable minimal preset in audio-only

Fixes #1543
Fix a few VS2013 /analyze C6001 warnings about using unitialized memory.
Reindent files.
Reduce variable scope.
Remove unused variables.
StaticLink.cpp: fix the C6319 /analyze warning.