fix cython compilation
fix for running under jython
fix display settings dialog