Fixed malloc warning, now casting to void *.
Merge pull request #1461 from akallabeth/clang_warning_fixes

Fixes clang warnings ```Allocator sizeof operand mismatch```