Fixes IOS-388 Change `build_distribution.py` to build Release rather than Debug builds
Changes made when building distribution.