updated shared_ptr header for OSX; Now Java and C# compile on OSX