PyInt_FromLong portability.
provisionary compilation fix
more compilation fixes