Fix some typename disagreements, uninitialized struct warnings, unused p...

...arameter warnings

Added reinterpret_cast for clang compiler
Looks like there's some spurious whitespace at the beginning of this line.