Update MacOSX recognition function

Environment.OSVersion does not always return MacOSX on mac:
http://mono.wikia.com/wiki/Detecting_the_execution_platform
Fix dead link
Updated changes to initialization function
Merge pull request #32 from evolvedmicrobe/master

Fix dead link, improve Mac OSX recognition