Fix import error of free_port()