fix: do not read uninitialized value, ever

Valgrind spotted the use of an uninitialized value in file_writev()
Added missing -lm.
fix: typo