Update loader.c for new bootflag impl.