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

...arameter warnings

Added reinterpret_cast for clang compiler