fix libs compilation