Reverts KxSystems/mqtt#39
One problem - the mac build is failing on Travis.
The problem is the use of strndup which I believe is a GNU extension that isn't support on earlier OS X builds.
We could bump the travis OS X image (as is done by arrowkdb) but it's probably easier to change the strndup to a malloc + memcpy (or just use plain strdup if the strings don't contain \0 chars)
Reverts KxSystems/mqtt#39 One problem - the mac build is failing on Travis. The problem is the use of strndup which I believe is a GNU extension that isn't support on earlier OS X builds. We could bump the travis OS X image (as is done by arrowkdb) but it's probably easier to change the strndup to a malloc + memcpy (or just use plain strdup if the strings don't contain \0 chars)