Merged with version 3.0

1. Fixed *.xcodeproj files to support for arm64 architecture
2. Fixed GZIP stream usage
3. Added casts for objc_msgSend() to fix crash on arm64
4. Added error classes and methods