test: fix compilation warnings

PR-URL: https://github.com/libuv/libuv/pull/23
test: skip tty test if detected width and height are 0

This happens in certain build environments such as Jenkins if
some tweaking is not performed in the host system.

PR-URL: https://github.com/libuv/libuv/pull/22