add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit