Fixed maximum block size for read().
Fixed compilation warnings.