Set thread execution state

prevent Windows from falling into standby
patch from LoRd_MuldeR
Set console screen buffer size
Add MSVC/CL 2013 Support