Making examples functional on OSX