Make the configure only take effect on mac