Link jsoncpp library in proper way