Updated the configure script to work under *BSD.