add initial selection support for osx
fix shutdown blocking
fix code for visibility manipulations
fix platform macro for osx
disable resize for settings dialog