Fix the build for the dynamic plugin