Build update for MacOSX

- Added shell script to build static libraries
- Fixed UNICODE error in Platform.cpp
Improved compile shell script for OSX