Enhance globalopt to spot cases where mallocs are conducted via globals, without ever actually doing anything useful -- they are only allocated, stored to and eventually freed.
Fix: note the return value of the seek family with SEEK_CUR

Also remove a couple of debug prints.