Fixing configure for mac