Fix minor warnings and add Eclipse project files.

Nothing serious, just thought it would be nice to start small. I'll add a couple of comments to the pull request.