Fixup of a problem in the configure.py script

- Fixed a problem in the CXXFLAGS/LDFLAGS parsing functions
  that caused the script to hang.