Fixes an error: use of undeclared identifier 'ftruncate' under Chimera Linux which uses the musl C standard library.