VS2013 stuff.
Fix Linux build issues.
Fix config.
Don't double the delay.
Add some stats.