fix some pointer to intger without cast warnings (patch by Michel Bardiaux)