Fix for building on older systems, etc.

Here are some patches for consideration.  I am able to build as far back as Fedora 11 using standard packages (and some old 1.6 JRE from Sun/Oracle).

The resources patch may be a bit questionable, but it works for me and fixes
the exception I emailed you about...