Remove compilation warnings, cleanups
io: Add some helper functions
common: Add memcpy function