Including latest changes - removing part of the flicker and introducing small platform dependent files.

The mac.* files are only there to give in simple functions, which are mainly not needed on other platforms, afaik... Still, this is Mac only yet, but will port it to other platforms once it works here.