Fix the mac build for 8f4adda2.

Refs. ticket:4095.