fixed the build files for the examples on 2.10
retrieving the libjar dir name from the configuration. Fixes #231