Make the QRsMemory to be tht dynamic link library

1.change the class definition.
2.create teh cmake file.