Fixed code that would compile only with 1.7 compiler.

Signed-off-by: Paulo Pires <pjpires@gmail.com>