pls: C89 compilation fixes

Move declaration to the top of the block.

https://bugzilla.gnome.org/show_bug.cgi?id=724540