pal_common: use deepcopy to set default configuration options

As suggested in #1