Fix link against libraries