Fixed compilation with the OSL cmake option on.

The classes removed were wrong in any case.