import fix from upstream JSBN 1.4