fix double definition error (for c++) and cast to void* warning in -peda...

Hi, I got an error when compiling mongoose.c with a C++ program. `static struct ssl_func ssl_sw[30]` was double-defined. I removed the extra definition. There was also a warning about casting integer to void* which I removed by casting to intptr_t first.