Could you add a comment above this explaining why we're doing this on unix platforms? You can also probably change the condition to `if cfg!(unix)` to be a little more clear.