fix problematic constant folding condition in cascaded comparisons (even though it likely doesn't work anyway)
fix Py2.4 C compilation problem