fix some compiler warnings seen with -W -Wall; rearrange code into logical sections
fix some compiler warnings seen with -W -Wall; rearrange code into logical sections

balabit/libdbi-drivers,balabit/libdbi-drivers,balabit/libdbi-drivers