THRIFT-2888: JSON generator - fixed missing include

Client: JSON
Patch: Pascal Bach

<limits> was used but not directly included
Respect --with-openssl when building C++ support.