Add casts to fix strict compiler errors [-fpermissive]
Add casts to fix strict compiler errors [-fpermissive]

When using g++ and enforcing strict compiler errors, this commit fixes the following:

mongoose.c: In function ‘char* mg_fgets(char*, size_t, file*, char**)’:
mongoose.c:2405:60: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]

mongoose.c: In function ‘int set_ports_option(mg_context*)’:
mongoose.c:4586:64: error: invalid conversion from ‘void*’ to ‘socket*’ [-fpermissive]

mongoose.c: In function ‘void* worker_thread(void*)’:
mongoose.c:5104:28: error: invalid conversion from ‘void*’ to ‘mg_context*’ [-fpermissive]

mongoose.c: In function ‘void* master_thread(void*)’:
mongoose.c:5220:28: error: invalid conversion from ‘void*’ to ‘mg_context*’ [-fpermissive]
mongoose.c:5235:58: error: invalid conversion from ‘void*’ to ‘pollfd*’ [-fpermissive]

pfalcon/mongoose-mit,brockn/squeasel,danburkert/squeasel,chyland/Meerkat,chyland/Meerkat,jaz303/mongoose-mit,jaz303/mongoose-mit,brockn/squeasel,pfalcon/mongoose-mit,jaz303/mongoose-mit,daokoder/Marten,chyland/Meerkat,GerHobbelt/civet-webserver,GerHobbelt/civet-webserver,mygittyhubby/free-mongoose,mygittyhubby/free-mongoose,pfalcon-mirrors/mongoose-mit,mygittyhubby/free-mongoose,brockn/squeasel,chyland/Meerkat,danburkert/squeasel,pfalcon/mongoose-mit,jaz303/mongoose-mit,pfalcon-mirrors/mongoose-mit,jaz303/mongoose-mit,pfalcon-mirrors/mongoose-mit,daokoder/Marten,GerHobbelt/civet-webserver,danburkert/squeasel,danburkert/squeasel,brockn/squeasel,jaz303/mongoose-mit,mygittyhubby/free-mongoose,GerHobbelt/civet-webserver,daokoder/Marten,pfalcon-mirrors/mongoose-mit,GerHobbelt/civet-webserver,pfalcon/mongoose-mit,chyland/Meerkat,daokoder/Marten,mygittyhubby/free-mongoose,daokoder/Marten,danburkert/squeasel,chyland/Meerkat,GerHobbelt/civet-webserver,daokoder/Marten,mygittyhubby/free-mongoose,daokoder/Marten,pfalcon-mirrors/mongoose-mit,pfalcon/mongoose-mit,danburkert/squeasel,mygittyhubby/free-mongoose,brockn/squeasel,brockn/squeasel