Rearrange Opus/Speex Ogg checks

Place the checks inside the path where Opus/Speex support is enabled, to
prevent superfluous errors.