Fix compilation when disk support is disabled