update packages and fix build