Porting of libraries to make them compatible with Android