Update flexbox layouts to work in Safari.

Like it says on the tin.