Compile fixes for later merge. Changes in zio_rewrite() parameters,
priority is enum.
Merge pull request #4 from lundman/master

Compile fixes for later merge.