Use iostream for saving GL program binary

Fixes https://github.com/mapbox/mapbox-gl-native/issues/728