Add more conditional compilation to make the workspace build on macOS
- Further to !44 (merged), #[cfg] out more of the code such that you can run
cargo check --all-targets
on macOS and have it not fail. - (practically, this means you can use rust-analyzer with VS Code now)