Build fixes

Build fails on newer linkers if libMetaSQL is not explicitly linked:

https://buildd.debian.org/status/fetch.php?pkg=postbooks-updater&arch=i386&ver=2.2.5-6&stamp=1411552051

Also updates to use libopenrptcommon (was libcommon before)