Allow inserting custom comfigure flags into packages

Review 1905 by @larkost