Handle non-target libraries in CMake utils.
Merge pull request #1 from Fraser999/nodejs

Handle non-target libraries in CMake utils.