graphics: fixes for cython 0.20.2 (old version) and remove gcc warning.