Link libraries in static lib