Fix build errors introduced by "RFC: Remove `~` in favor of `box` and `Box`"

Fix build errors introduced by "RFC: Remove `~` in favor of `box` and `Box`"
See also: https://github.com/rust-lang/rfcs/pull/59