Merge pull request #68 from taotetek/master

Problem: examples broke building via Make
added Attach function for *Sock and moved smart constructors to use it