Fix expected distance in test case.
Change to unix line break.
Raise IOError if 'puzzle_fill_cvec_from_file' fails.
Fix compile warnings.