Minor compatibility fixes for Safari 533.1