fixed getting libraries