Restrict visibility flags to gcc.
Unreverse write_short_hash (see compensating change in -client).