Use NSUserDefaults for powder.pref storage on OS X, fix initial file open handling on OS X