Fix buildfile and reinstate ByteOutputStream class usage
MiCA-0.1 binary