WIP: Fix SmartOS build issues.

Moved cJSON to its own static library due
to double linking errors between libvbucket
and couchbase_utils both using it.

Change-Id: I814184d0162d58525c608b29898feed6812ef652