Fixed osx build. Refs #9244.