Fixed linking errors by moving the service define out to the plugins library