Update fstapi.c to latest from GTKWave