libaria: libAria.so is underlinked

Here's a version rebased against 2.8.0+repack-1.

  * Link libAria.so with -lpthread -ldl -lrt, rather than passing those
    options only when linking the objects that are linked with libAria.