Added support for flush in libmcvc1