Compile and link with OpenMP and make the modification of function
compute_logreg work with OpenMP