Update libraries, change depracated calls.