Merge pull request #9 from pvuorela/master

fixes, basic input method support
Fix inputMethodQuery() signature as const