Merge changes Ieecda65d,Idf3cbdab

* changes:
  Fix bugs of database corruption following IO error on systems supporting atomic-write
  Fix bugs of sqlite that returns SIGBUS on disk full in WAL mode
tree: 7183ee85002554d3e51755622e63b8c6c3026863
  1. android/
  2. dist/
  3. CleanSpec.mk