Add a configure script, for easier override of CXXFLAGS etc.