fixed mouse panning with zoom
various small improvements and such, added a bunch of undeclared dependencies.