make compile with g++ (fix invalid conversion from ‘void*’ to ‘ns_connection*’)