> when compiling the examples i get errors like "undefined reference to
This is a good thing: it is telling you something important, which is
that you aren't linking to the correct library version. This is why
that feature was created.
Something's messed up in your linkage settings, because the examples
should be built against the library in the lib subdir, but it looks like
it's erroneously trying to link to the old version still installed.