fixed to build with mingw 4.8.2

1. fix async_libuv.c with #define NO_OLDNAMES
2. fix cli.c with remove strtok_r