Add Darwin compatibility