Android U Beta 3 GPL
Merge changes from topic "ext2simg-fixes"

* changes:
  ext2simg: fix same_file() with symlinks
  ext2simg: fix error check of io_channel_read_blk64()
  ext2simg: clean up integer types and check for too-large fs
  ext2simg: clean up add_chunk()
  ext2simg: use a standard flexible array
  ext2simg: use bool where appropriate
  ext2simg: fix same_file() to check st_dev
  ext2simg: fix off-by-one errors causing corruption