Updated so custom professions work on OSX.