adds a lot of improvement to the script - proper CLI - generate a api_require.h which contains a function that export the symbols
This fixes a longstanding bug with the plugin API. This commit is not complete, further polish is still needed.