some fixes for the z80 backend, fixes #556