Builds fail with older versions of GCC -- #5046

This commit fixes mixed statements and declarations in utils.c
that causes GCC version 2.95.3 to issue an error, and this error
keeps builds from completing.  The fix was to declare the variable
before first reference as a statement.

fixes: #5046
fixed libdbd package name for opensuse

Signed-off-by: Michael Friedrich <Michael.Friedrich@netways.de>
Merge branch 'fix/gcc-errors-5046' into next

Fixes #5046