Optimizing scripts.

- Make zlib using configure.
- Fix messages.
- Unifying pre/post scripts for multitarget apps.