'Hardass' warnings compliant

Adds explicit conversions to address compiler warnings when building with Peter Hosey's updated "hardass mode":

http://boredzo.org/blog/archives/2009-11-07/warnings