Fix find module for cjson library

Some small issues prevented the cjson library from being found if located in an out-of-tree build.