Fix integer size warnings

(thanks @ivasic)