Modifications in example, plus some small corrections in DLPlugin.cpp