Fixed lseek() to return current file offset.