Note that this would also break the build on GCCs (since only clang understands `-stdlib`)

We used to carry a patch for MySQL, a variation on which made it into the latest MySQL release. Maybe that would be useful here?