Credit for the original patch goes to Gianfranco Costamagna (thanks!).
Also added a stderr warning if no flags are set at all, as this is almost
certainly wrong.
git-svn-id: https://cld2.googlecode.com/svn/trunk@194 b252ecd4-b096-bf77-eb8e-91563289f87e