Fixed a type in $mem model in simlib.v
More changes to simlib to make it friendlier to a wider range of tools
Fixed parsing of verilog macros at end of line
Fixed $lut simlib model for a wider range of tools