add in auto detection of Darwin to export variables