A few misc bug fixes to make the build work properly

After cloning the current testng repo, I worked through building and running the tests. I found a few small errors here and there, which I've fixed in the commits for this pull request.

commit 914e6c222f582831303797f6cecb22de8de0200c is one that I'd like feedback on, though. The name of the class in question suggests that its purpose is for testing an error condition, and hence, being faulty, the test should pass. However, the test actually exits with an error. After the fix, the test completes with 0 failures.

I hope these fixes help testng. It's a great test framework -- I love using it, and I'd love to give back to it.