BUG Cholesky delete routines wouldn't compile on Solaris

Fixed that and cleaned it up. Should solve #1510.