Adapted to Corrade and Magnum changes.