Merge pull request #10 from Chilledheart/travis-ci

Add travis script
Cleanup code
Skip deprecated g_type_init() for GLib 2.36
Detect darwin platform for autotools
FIX for homebrew
Fix a bug with coreutils installed under Mac OS X
Fix test
enable check in travis-ci