Man gets life sentence for raping girl, 11