Use the engine's own MultiPV support instead of trying to fake it ourselves. Seems...
-rw-r--r-- 20485 booklook.c
-rwxr-xr-x 32490 remoteglot.pl