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