Changed RST.hpp and Makefile; pases leaktest_RST.cpp