Fix. context.autoclose use weak table for store socket reference
Fix. Build with mingw(gcc 4.6.2)