more memory debug
different memory problems in h264ref
easier to use multiple checkpoint functions