Fix for updates in Rustc

`*mut c_void` no longer implements `Sync`, and `static` items must implement `Sync`.

I also fixed other statics which should be consts.