Fixed some comparisons to get things compiling on gcc 4.4.