tests: Fix compiling with Apple GCC 4.2.1