Fixing compiler warnings in plugins