Fix unresolved imports
Fix unresolved issues
vec::bytes::memcpy -> vec::bytes::copy_memory
Use explicit close() to write out remaining data
examples: Fix base64-tcp-server.rs to compile