Fixed configure for Mac builds