changed result type to const char* instead of char*

I believe the result of  zsocket_type_str should be const char*