rework use of openrpt shared libs

sanity tested with revised `autobuild.sh -n` and `-p` as well as building by hand