Added creation functions to plugins for dynamic class loading.  They are wrapped in ifdefs so that they only compile when they are compiled as .so files