fixed segfault when unmapping surface with mapped subsurfaces
cursors draw in correct place now. Many segfaults/other bugs are
around.s
stabilized application somewhat for demo