fixed several warnings, made CheckQuery() smaller

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3870 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed more msvc warnings

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3871 8b96e2b9-35c5-2c16-bc47-5122d61876d4
oops, rolled back debug code

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3872 8b96e2b9-35c5-2c16-bc47-5122d61876d4