updated librest so that it now compiles