Fixing a bug from #72

Checks if OS is mac before attempting to set icon.