Fix flags so that they work for mac and non-mac.