Work around some annoying compiler bugs.