Merge change 4057 into donut

* changes:
  make applypatch into a static library
tree: b82e3952cced200273bb4ad9b398285ff946a1ec
  1. core/
  2. libs/
  3. target/
  4. tools/
  5. buildspec.mk.default
  6. cleanspec.mk
  7. envsetup.sh