Fix Safari Math.imul bug