patch http://sphinxsearch.com/forum/view.html?id=11339#52703