Merge pull request #14 from appneta/master

fix crash on close
properly detect system strlcpy and fix problem compiling on OSX Mavericks
fix libstrl linking bug
Merge remote branch 'upstream/master'