Skip deprecated g_type_init() for GLib 2.36
Use uname command to detect Darwin platform
Resolve pidfile resource leaks

This patch resolves resource leaks caused by not closing the file streams upon
an write error.
Add travis-ci script
[FIX] homebrew autotools path