Flavin biosynthesis