Makefile: print CXX instead of CC
SharedPtr: implement and test