added os_memcpy for loader. If problems feel free to remove