fixing hardcoded lib path

AT LAST! cpp is sometimes a bit tricky... and autotools is really superior in
this kind of area...