Fix library loading for unit tests

To run unit tests, the environment variable LD_LIBRARY_PATH must include
the local share library path, otherwise the library is not found. Use
qmake QMAKE_RPATHDIR on Unix to avoid having to change the environment.
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>