fixed configure script for osx