compilation fix for companion solver