Use getbyte/readbyte on Ruby > 1.8.x
Fix gen_classes_from_libmatroska to correctly parse latest libmatroska cpp
Updated baseclasses.rb from latest libmatroska cpp