Fixes for rust nightly

- fail! -> panic!
- .. -> ... in match statements
- move gl functions into unsafe blocks
- mut_* -> *_mut
- move_iter -> into_iter