Compute required MySQL related library parameters in configure

-L$(plugindir)/.. is ad-hook way to detect library location.