Fixes needed for compile on 64 bit Linux machine

I worked with Pat Belko to find these bugs while building your version on a Red Hat EL machine.