fix for non-mac platforms