Fix some typename disagreements, uninitialized struct warnings, unused parameter warnings
Added reinterpret_cast for clang compiler