Make migrate script compatible with glib < 2.40
migration script: fix glib alternate code so it doesn't wipe out
defaults in the new schema.
2.4.2