Removes references to cast module.

Also fixes change from `extern unsafe` to `unsafe extern`. fixes #39