removed include fcntl.h and removed call to gzseek