Add draw functionality to CRectangle. Fix dependencies in makefile.