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