Remove `lalloc_clear`

Use `xcalloc` instead. Change some local variables
to avoid casting.
vim-patch:7.4.236

Problem:    It's not that easy to check the Vim patch version.
Solution:   Make has("patch-7.4.123") work. (partly by Marc Weber)

https://code.google.com/p/vim/source/detail?r=a44087db72386d080e9da870d751daf498004be8
use fixed-width types to define u8char_T

The current approach was a bit ad-hoc.
I donated > 50 $, should be with URL

See; https://www.bountysource.com/people/24072-lsc
Added os_isatty
Removed mch_check_win
Removed mch_input_isatty
Replace explicit uv_guest_handle(fd) == UV_TTY by os_isatty