Arrow keys application mode support
Make winpty to compile on Windows in Visual Studio