Fix GCC warnings in FileStream

Fixed some GCC warnings in FileStream.