Implement connection_close() callback

connection_close was defined in civetweb.h but not implemented.
Also corrected a compile warning and fixed websocket example.