Fixed compilation. Use own c++ headers. Added support for setCertificates at C++ (HTTPS support).