cmake build system: build libraries with -fPIC & boost_thread linking fix

Signed-off-by: Tim Blechmann <tim@klingt.org>