Handle darwin platform