Fixes for rustc 0.12.0-nightly, mut and const for many pointers