Cuild on Linux: explicitly include libm for the rotation matrix
Fix double file close in write_ori()
Merge pull request #1 from yosefm/calibration

2 fixes for the calibration submission
copied lsqadj.c and .h from src_c cause we need matmul in ray_tracing.
Merge branch 'clean_master_copy_from_may12' into ray_tracing

# By Yosef Meller
# Via Alex Liberzon (1) and Yosef Meller (1)
* clean_master_copy_from_may12:
  Fix double file close in write_ori()
  Cuild on Linux: explicitly include libm for the rotation matrix
changed lsqadj.c to 'modern function type" with clear argument specification.
updated lsqadj.h and ray_tracing.c to include "lsqadj.h"
removed point_line_line from ray_tracing.c - it's not used here. TODO: this function has too many inputs and outputs
removed ray_tracing( ) which is not used anymore in the code. it was replaced by ray_tracing_v2 everywhere. TODO: fix the name
removed ray_tracing from ray_tracing.h as well
added parameters.{c.h} because in ray_tracing we need mm_np
changed mm_np inside control_par to a pointer
added parameters.{c,h}
there is still a problem with check_parameters test