Fix memory leak in wshc

wshc would allocate new wsh_cmd_res_t objects for every host.
Unfortunately, these were never freed. Now free them.

In error cases, free the entire object rather than just the top-level
object.
Remove spurious debug line
Fix LINKEDIN indentation in FindGLIB2.cmake
Remove trap for testing stdout

This test was flawed from the beginning, as it tested library behavior rather
than testing the actual functionality of wsh. protobuf-c has actually gotten
its shit together and doesn't actually write to stdout anymore.

Now, we've removed the tests so that new versions of protobuf-c don't break
this test.
Merge branch 'develop' into develop.macosx