Change C constructor to use 'flags=' argument.