finally got SDL to work (to some degree)