Biosynthesis of functionalized natural products