Update libraries and fix testsuite