Added MacOS Support

Added Mac support
and Fixed a bug where if the Culture Attrbiute was null (as it is on mac sometimes) it falls over