Fix python binding compile errors #23

Just the minimal amount of work needed to make test.py work again
Merge pull request #31 from raboof/fixPythonBindings

Fix python binding compile errors #23
Fix 'getSelectionEnd'
Allow stopping test.py with ctrl-C
Merge pull request #33 from raboof/breakPyQtTest

Allow stopping test.py with ctrl-C
Merge pull request #32 from raboof/getSelectionEnd

Fix 'getSelectionEnd'