Libya grants immunity to 'revolutionaries'