Fix: ignored qualifier warning from memory.h
Fix: signed/unsigned comparison.
Fix unused parameter warning.
Merge pull request #17 from bsmiles32/wextra_fixes

Wextra fixes