Remove std and replace std imports with equivalent core imports