extract simple socket to lib
librtmp: create socket
use goto to free resource
srs-librtmp: add make ssl/nossl support for sample