fixed async_connect for endpoint_type reference

Signed-off-by: Jack <jack.wgm@gmail.com>
update CMakeLists.txt

Signed-off-by: Jack <jack.wgm@gmail.com>