Fix configure script for CRAN