upgrade to rust 31/10/2013

Minor changes were needed.

```
transmute casts on window events whined about wrong sizes,
changed from int to i8, which solves the problem
```