Removed save copies
Fixed library paths at linking and in the code