[22070] Fix memory leak: Missing regfree() after regcomp().

This fix is backported because it solves this bug:
Bug 681907 - Save operation is leaking seriously, eventually GnuCash uses 6.4 GB RAM

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23446 57a11ea4-9604-0410-9ed3-97b8803252fd
[23499] Bug 627575 - Stylesheet names with non-alphanumeric characters and saved-reports

g_key_file_[gs]et_string parses the string to escape newlines and comments
This erroneously does some escaping in the #{symbol name}# guile extended format
for symbols. Since we already strip newlines and comments ourselves,
we can save and store the string without any additional parsing
using g_key_file_[gs]et_value.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23500 57a11ea4-9604-0410-9ed3-97b8803252fd
[23412]Decompress zipped XML files ourself instead of letting libxml2 do it.
As of version 2.9.1 it has a bug that causes it to fail to decompress certain files.
See https://bugzilla.gnome.org/show_bug.cgi?id=712528 for more info.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23502 57a11ea4-9604-0410-9ed3-97b8803252fd
[23415]Small fixes to make the Windows build work again after r23412

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23503 57a11ea4-9604-0410-9ed3-97b8803252fd
[23438]Bug 644044 - Lots: SQL backend loses link to Gain/Loss Txn

Gotta edit/commit the source transaction as well as the gains txn.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23504 57a11ea4-9604-0410-9ed3-97b8803252fd
[23466]Ensure that all KVP changes are properly marked dirty and committed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23505 57a11ea4-9604-0410-9ed3-97b8803252fd
[23392]Use guile executable as found during configure for tests and some support scripts

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23506 57a11ea4-9604-0410-9ed3-97b8803252fd
Make gnucash 2.4 buildable on a system that has both guile 1.x and guile 2

- 2.4.x won't run with guile 2, so bail out when that version is found
- allow the user to manually override the guile version to use by
  setting environment variables GUILE and GUILE_CONFIG

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23507 57a11ea4-9604-0410-9ed3-97b8803252fd
[23501]Bug 627575 - Stylesheet names with non-alphanumeric characters and saved-reports -- addendum

Work around a bug in guile 1.8. It escapes spaces in symbols
when printed to a string, but can't convert that string
back properly in a symbol

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23508 57a11ea4-9604-0410-9ed3-97b8803252fd