Added includes needed to use ftruncate. Resolves issue #8.