fix various GCC warnings, mostly initialized but otherwise unused variables