fixed linking of plugins libs #977