Fix build issue introduced by commit 9b0b8c1c "Local variable names shadowed global function names (e.g. read), this would cause compile errors with gcc 4.4.7."