Bug 979887: Fix GCC warnings about inline variable declarations, r=glandium

Some code is compiled in C90 mode, where inline declarations of
variables are not allowed.
Bug 979887: Fix GCC warning about undeclared function |vsnprintf|, r=glandium