Tell CMAKE that linker language is C++

This is my attempt to fix cmake build error that is:
    CMake Error: Cannot determine link language for target "json_spirit".
    CMake Error: Cannot determine link language for target "json_spirit_static".