Bring BMGLib closer to what is present in Rice Video Linux