Add OSX Darwin specific workaround