various speex fixes (bug #4253)