Add another example and change the buildsystem slightly.

All examples can now be built using Ant from the examples directory. The examples all use the `build-example.xml` file and so "code duplication" is reduced to a minimum.