pothos: rpath setup and common library defines