No match for operator | when attempting to write to PORT

What resource were you using for the older AVRs?
If there is one that is particularly good, it would probably be easier to re-write it for the new AVRs than to start from scratch.