Fix build issue on OSX. Refs #9084.