fix ramdisk compiling issues 2