Fix compiling on unusual OS X configurations. [Robert Walsh]