Improve compatibility with Jackson 1.9.x

relates #239

(cherry picked from commit 906816e870ab8a3d17fc58f9ecfee8ada65e701e)