Revert "Revert "rework use of openrpt shared libs""

Reverts xtuple/qt-client#467