Fixed a compiler error in Ubuntu

For some reason a definition that visual studio allowed, Eclipse didn't and it wouldn't compile.

Refs #4495