Makefile: Explicitly link against static library

When both the shared and static library are available, 'pstore'
and 'test-pstore' may link against either of them. Make the build
deterministic by explicitly linking against the static library.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>