Compiling smart_ptr library