Create a struct to hold pointers to all functions needed by plugins.
This eliminates the need for compiling with `-rdynamic`, and fixes
the plugins linking on Cygwin.