Ninja: fix foreground flag broken by 8115