lib: size: use int64 so it works also on 32bit platforms