More improvement to the existing scripts

1. add openssl support to iOS/Android/Mac
2. patch libwebsockets 1.3 to work on Android
3. add more accurate compile flags to Android platform with different arch
4. other minor improvements to the scripts