Libraries fix for different OS