Fixed compile-error on gcc 4.6. I suspect it is an error in the compiler, but it was easy to avoid.