patch to work with Icarus Verilog simulator