Work around bugs in Apple GCC 4.2.1