implement link handling

- some cleanup: we no longer need addCommandVector
- add proper test cases for links as well
add a debug option to display links in SDL output

- additionally use the NDEBUG preprocessor switch instead of my own
  define
define a dedicated type for glyphindex and set it to 32 bit
add another link test for 2 touching links