Add 10.10 support to show and hide dock