was a bit to hasty with removing platform dependent code

We still need autreleasepools, but I moved them in the correct place, so the pool in the graphic thread gets drained regularly.