added JC's changes and removed dependence on openmp

https://github.com/ikolesov/CarreraSlice/compare/ikolesov:fab8d83...ikolesov:228c21d