Fix test.h compatibility with OS X