A few easy fixups

I gave a try at building tlj-residual against current residualvm repository.
With those patches it doesn't build yet, but they fix a few easy errors.