Added support for OS X in the "system" variable.
Added experimental OS X support.