use LF as line end for CL file
Fix OMP version of build_gradient_map