update gm from template

* should build on Windows now, and be a little faster, maybe
* plus some cleanup to use changes to gm
* also update todo to reflect things we did ages ago (and the bug is
  probably fixed, I guess)