Fix dependencies of libr3