Fix Mac OSX readUserPreferences missing off last char of pref data, add clipboard implementations for Mac OS X