Bug 995075 - Include update_filter() changes from upstream speexdsp. r=padenot, a=sledru

This includes changes to update_filter() that landed on m-c in bug 1042504.
Bug 1047831. r=ehsan, a=sledru