improve c++ compatibility
improve c++ compatibility

Adapted by Joakim
gameclosure/libwebsockets,peeracle/libwebsockets,turbulenz/libwebsockets,JoakimSoderberg/libwebsockets,JoakimSoderberg/libwebsockets,pankona/libwebsockets,IOPOINT/libwebsockets,dumganhar/libwebsockets,wenqiwooo/syslog-libwebsockets,jmillan/libwebsockets,pombredanne/libwebsockets,mushroomgithub/libwebsockets,peeracle/libwebsockets,jmillan/libwebsockets,SoapyMan/libwebsockets,maws/libwebsockets,Chilledheart/libwebsockets,GroundControl-Solutions/libwebsockets,gameclosure/libwebsockets,RobertoMalatesta/libwebsockets,JoakimSoderberg/libwebsockets,dumganhar/libwebsockets,sartura/libwebsockets,pombredanne/libwebsockets,sartura/libwebsockets,ralight/libwebsockets,RobertoMalatesta/libwebsockets,tn0502/libwebsockets,GroundControl-Solutions/libwebsockets,sanyaade-teachings/libwebsockets,maws/libwebsockets,jmillan/libwebsockets,GroundControl-Solutions/libwebsockets,RobertoMalatesta/libwebsockets,sartura/libwebsockets,sartura/libwebsockets,JoakimSoderberg/libwebsockets,ralight/libwebsockets,PureSwift/libwebsockets,dumganhar/libwebsockets,RobertoMalatesta/libwebsockets,gameclosure/libwebsockets,dumganhar/libwebsockets,PureSwift/libwebsockets,maws/libwebsockets,pankona/libwebsockets,Chilledheart/libwebsockets,GroundControl-Solutions/libwebsockets,tn0502/libwebsockets,cambridgehackers/libwebsockets,pombredanne/libwebsockets,IOPOINT/libwebsockets,pankona/libwebsockets,peeracle/libwebsockets,sartura/libwebsockets,dumganhar/libwebsockets,jmillan/libwebsockets,cambridgehackers/libwebsockets,cambridgehackers/libwebsockets,PureSwift/libwebsockets,cambridgehackers/libwebsockets,ralight/libwebsockets,tn0502/libwebsockets,mushroomgithub/libwebsockets,sanyaade-teachings/libwebsockets,sartura/libwebsockets,maws/libwebsockets,peeracle/libwebsockets,ralight/libwebsockets,sanyaade-teachings/libwebsockets,pombredanne/libwebsockets,pankona/libwebsockets,wenqiwooo/syslog-libwebsockets,gameclosure/libwebsockets,sanyaade-teachings/libwebsockets,SoapyMan/libwebsockets,PureSwift/libwebsockets,Chilledheart/libwebsockets,sartura/libwebsockets,wenqiwooo/syslog-libwebsockets,SoapyMan/libwebsockets,mushroomgithub/libwebsockets,ralight/libwebsockets,tn0502/libwebsockets,SoapyMan/libwebsockets,peeracle/libwebsockets,wenqiwooo/syslog-libwebsockets,SoapyMan/libwebsockets,PureSwift/libwebsockets,turbulenz/libwebsockets,mushroomgithub/libwebsockets,GroundControl-Solutions/libwebsockets,Chilledheart/libwebsockets,turbulenz/libwebsockets,IOPOINT/libwebsockets