fixes build atomic stabilization

fixes fallout from stabilization of std::sync::atomics with rename to std::sync::atomic (rust issue #16258).
works around https://github.com/Hoverbear/rust-rosetta/issues/276 to fix the build (workaround can be removed when upstream issue is fixed)
updates num, which is no longer building with latest rustc