Fix pluginlib macros and createInstance usage.