Get grbl-sim working with current edge/master.

Here are all the things I had to do to get the simulator working.