C++-ify bml, mmc and flash utility libraries