Fix some 64-to-32-bit conversion warnings on OS X.

refs #811