Integer cleanup

Changes from compiling with additional -W options
I'll have to remember to preserve these when syncing from https://github.com/kmackay/micro-ecc :)