Using private ns_avprintf() in mg_printf_data()
Fixed #343 in conn2() for Lua
Updated examples to conform to the evented API
Fixed windows build for examples
Added -pthread flag to unix compilation example
Example changed to evented API