Porting NIF over to libbrine
Porting over to libbrine'