Fix compiling error for libtelnet