Fixed static / dynamic plugin entry point.
Merge pull request #2174 from akallabeth/dynamic_plugin_fix

Fixed static / dynamic plugin entry point.