eagledns fix to compile with JDK 1.7

Upstream fix tracked in https://issues.jboss.org/browse/RESTEASY-835, part of https://github.com/resteasy/Resteasy/commit/0f3a897ebdf3760e2e11453bb9a717c6bdcc5414 commit
Merge pull request #339 from rsvoboda/Branch_2_3

eagledns fix to compile with JDK 1.7