Add helper class to create MKV file

The code to create mkv files comes from the x264 git repository Small
modifications were made to depend on the smallest subset possible and not
require a C99 compatible compiler (as VC is not)