C++: fix static compile in C++

Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
diff --git a/src/plugins.c b/src/plugins.c
index 02719bd..241a209 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -185,6 +185,10 @@
     uint32_t u, v;
     char *str;
 
+#ifdef STATIC
+    return 0;
+#endif /* STATIC */
+
     /* get the plugin data */
     plugin = dlsym(dlhandler, file_name);
     str = dlerror();