added mac specific flags