Fix to logging problems (undefined symbol) in plugins