Fix build (obsolete tilde)

~[int] is now obsoleted
also sync::Future is now in std::sync::Future

should fix the build