link with shared libraries if RDK_INSTALL_STATIC_LIBS is OFF