drop requirement on 5.10:

Three defined-or were changed in order to facilitate Perl < 5.10,
along with the use statement.

One was replaced with a defined-or with ternary operator, and the other
two just used ref() where defined-or just wasn't needed.