Fix pluginlib macros and createInstance usage.

Fixes #4