Use uname command to detect Darwin platform
Skip deprecated g_type_init() for GLib 2.36
Merge pull request #44 from Chilledheart/deprecated_g_type_init

Skip deprecated g_type_init() for GLib 2.36
Merge pull request #41 from Chilledheart/detect_darwin_correctly

Use uname command to detect Darwin platform