Updated the configure.sh script

- Updated the script to match the new cmake options.
- Replaced the --build-and-install option with separate --build
  and --install options.