add darwin to platform check