Update C-libraries. Polished Mahalanobis stuff