fixes #117

undo problematic optimisation that compiled plugins wrongly