Fixing compilation

When merging the code from upstream a variable declaration was removed.