I think the main problem is that neither of those two numbers can be accurately represented by binary (IEEE) floating points.
For what it's worth, I get the same results as your linux test on my intel macbook, v5.8.9 built for darwin-2level and v5.8.8 built for darwin-thread-multi-2level.