Added libraries and changes lib paths to relative.