Pass CC/CFLAGS and CC/CXXFLAGS to configure script separately

Addresses #158.