fixed lib flags