Fix platform detection so it is not confused with darwin.