cleanup some midi code
small fix in Stream.h
Makefile update