Fix tests with Apple GCC 4.0.1