Darwin native fixes