Fix linkage for rspamc if NO_SHARED is ON.