O3 optimization and compile fix
Add two optimized memcpy to mmap_to_ram