SSL export fixes (from Adam Langley) [original from 1.0.1]