Support for building with ant

I'm not going to use eclipse anytime soon, so I'm set to use ant for builds.  While I attempted the build, I stumbled on a couple of issues. This patch series contains the ones that were straightforward to fix.