Fixed double linking of libraries when updating; clear_cache should be called by the TL project