Flexbox compatibility fixes