porting library to genode