Fix compilation for SL6