test: fix process_title failing on linux

Shorten the test string from 40 to 38 characters because the title
length is limited to 39 characters.

Truncation of long titles was introduced intentionally by commit
a0c1d84 (see discussion in joyent/node#5006).
test: add error logging to tty unit test
build: convert predefined $PLATFORM to lower case
build: set soname in shared library
Merge remote-tracking branch 'origin/v0.10'